import request from '@/utils/request'
// 获取字典列表
export function Getdictionary(data) {
    return request({
        url: '/dictionary/query',
        method: 'post',
        data
    })
}
// 删除单个字典
export function delDictionary(id) {
    return request({
        url: `/dictionary/delete/${id}`,
        method:'delete',
       
    })
}
// 删除多个字典
export function delDictionaryAll(data) {
    return request({
        url: '/dictionary/delete',
        method: 'post',
        data
    })
}

// 新增字典
export function addDictionary(data) {
    return request({
        url: '/dictionary/save',
        method: 'post',
        data
    })
}
// 修改字典
export function editDictionary(data) {
    return request({
        url: '/dictionary/update',
        method: 'post',
        data
    })
}
